<div id="menu">
  <g:if test="${session.user}">
    <b><g:message code="topbar.angemeldet" /> ${session.user}</b>
    <g:link controller="user" action="logout"><g:message code="topbar.logout" /></g:link>
  </g:if>
  <g:else>
    <g:link controller="user" action="login"><g:message code="topbar.login" /></g:link> |
    <g:link controller="user" action="register"><g:message code="topbar.registrieren" /></g:link> 
  </g:else>
</div>
